#include "network/packet/JoinResponsePacket.h"

JoinResponsePacket::JoinResponsePacket(const QList<Node> & nodeList, quint16 width, quint16 height, const QImage & image) {
    this->nodeList = new QList<Node>(nodeList);
    this->width = width;
    this->height = height;
    this->image = QImage(image);
}

JoinResponsePacket::~JoinResponsePacket() {
   delete nodeList;
}

PacketType JoinResponsePacket::getPacketType() const {
    return JOIN_RESPONSE;
}
